package com.dynabook.ems.model.vo;

import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.format.DateTimeFormat;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import cn.idev.excel.annotation.write.style.HeadFontStyle;
import cn.idev.excel.annotation.write.style.HeadStyle;
import cn.idev.excel.enums.BooleanEnum;
import cn.idev.excel.enums.poi.FillPatternTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 工单导出VO
 */
@Data
@ApiModel(value = "工单导出信息", description = "工单导出数据")
@ColumnWidth(20)
@HeadStyle(fillPatternType = FillPatternTypeEnum.SOLID_FOREGROUND, fillForegroundColor = 40)
@HeadFontStyle(bold = BooleanEnum.TRUE)
public class WorkOrderExportVO {
    
    /**
     * 工单号
     */
    @ExcelProperty(value = "工单号", index = 0)
    @ApiModelProperty(value = "工单号")
    private String workOrderNum;
    
    /**
     * 生产数量
     */
    @ExcelProperty(value = "生产数量", index = 1)
    @ApiModelProperty(value = "生产数量")
    private Integer productionQuantity;
    
    /**
     * 成品型号
     */
    @ExcelProperty(value = "成品型号", index = 2)
    @ApiModelProperty(value = "成品型号")
    private String finishedProductModel;
    
    /**
     * 机型名称
     */
    @ExcelProperty(value = "机型名称", index = 3)
    @ApiModelProperty(value = "机型名称")
    private String machineName;
    
    /**
     * BOM号
     */
    @ExcelProperty(value = "BOM号", index = 4)
    @ApiModelProperty(value = "BOM号")
    private String bomNum;
    
    /**
     * BOM版本
     */
    @ExcelProperty(value = "BOM版本", index = 5)
    @ApiModelProperty(value = "BOM版本")
    private String version;
    
    /**
     * 工单状态
     */
    @ExcelProperty(value = "工单状态", index = 6)
    @ApiModelProperty(value = "工单状态")
    private String workOrderStatus;
    
    /**
     * 创建人员
     */
    @ExcelProperty(value = "创建人员", index = 7)
    @ApiModelProperty(value = "创建人员")
    private String userName;
    
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间", index = 8)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime insertTime;
} 